home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
game
/
patch
/
space_hulkhd.lha
/
SpaceHulk
/
Install_SpaceHulk
< prev
next >
Wrap
Text File
|
1998-02-23
|
2KB
|
99 lines
(set GameDir "SpaceHulk")
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
;ask the user to select a directory to install the game into
(set default-dest
(tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
"A drawer called " GameDir " will be created.")
(help @askdir-help)
(default @default-dest)
(newpath)
)
GameDir
)
)
(set @default-dest default-dest)
(set #datadest (tackon @default-dest "data"))
;create the selected directory
(makedir @default-dest
(infos)
)
(makedir #datadest
)
(copyfiles (source "spacehulkhd.readme")
(dest @default-dest)
(infos)
)
(copyfiles (source "hulk.rof")
(dest #datadest)
(infos)
)
(copyfiles (source "SpaceHulkHD")
(dest @default-dest)
(infos)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 1 in any drive" @app-name))
(dest "Hulk_1")
(help "Insert disk 1 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Hulk_1:")
(dest #datadest)
(all)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 2 in any drive" @app-name))
(dest "Hulk_2")
(help "Insert disk 1 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Hulk_2:")
(dest #datadest)
(all)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 3 in any drive" @app-name))
(dest "Hulk_3")
(help "Insert disk 3 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Hulk_3:")
(dest #datadest)
(all)
)
; relocate the program
(if
(= 0 (run ("reloc %s %s.rel ADR=$0 >NIL:" (tackon #datadest "hulk") (tackon #datadest "hulk") )))
("")
(abort "\"reloc\" must be in your PATH !")
)